<template>
  <el-rate
    @change="handleChange"
    :disabled="item.disabled"
    v-model="model"
    :colors="item.colors || colors1"
    :allow-half="item.allowHalf || true"
    :texts="item.texts || []"
    :show-text="item.showText || false"
  >
  </el-rate>
</template>

<script>
import yDefault from "./y-default.vue";
export default {
  includesComponent: ["rate"],
  name: "y-rate",
  extends: yDefault,
  data() {
    return {
      colors1: ["#99A9BF", "#F7BA2A", "#FF9900"]
    };
  },
};
</script>
